* {
  direction: ltr;
}
footer {
  background: #0a2540;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}
footer h5 {
  color: #fff;
  font-weight: 800;
  margin-bottom: 20px;
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: 0.3s;
}
footer a:hover {
  color: #ffc107;
  transform: translateX(-5px);
  display: inline-block;
}
footer .social-icons a {
  font-size: 1.8rem;
  margin: 0 12px;
  display: inline-block;
  transition: 0.4s;
}
footer .social-icons a:hover {
  transform: translateY(-8px) scale(1.1);
  color: #ffc107;
}
footer .map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
footer .map-container iframe {
  width: 100%;
  height: 180px;
  border: 0;
}
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #0d6efd;
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
}
@keyframes spinLoader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.navbar {
  transition: all 0.4s ease;
  padding: 18px 0;
  background: linear-gradient(135deg, #0a2540, #0d6efd, #6610f2) !important;
  border: none !important;
  box-shadow: none !important;
}
.navbar.scrolled {
  background: linear-gradient(135deg, #0a2540, #0d6efd, #6610f2) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}
.navbar-brand {
  font-weight: 900;
  font-size: 2rem;
  color: #fff !important;
  letter-spacing: 1px;
}
.navbar-brand i {
  color: #ffc107;
  margin-left: 10px;
  animation: floatLogo 3s ease-in-out infinite;
}
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(10deg);
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 10px;
  position: relative;
  transition: 0.3s;
}
.nav-link::before {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 3px;
  background: #ffc107;
  border-radius: 10px;
  transition: 0.4s;
}
.nav-link:hover::before {
  width: 100%;
}
.nav-link:hover {
  color: #fff !important;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a2540, #0d6efd, #6610f2);
  background-size: 300% 300%;
  animation: gradientMove 12s ease infinite;
  overflow: hidden;
  padding: 140px 0 60px;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
}

.hero h1 .gradient-text {
  background: linear-gradient(90deg, #ffc107, #ff6b6b, #ffc107);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  direction: ltr;
}

.btn-hero {
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  background: #fff;
  color: #0d6efd;
  border: none;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.btn-hero:hover {
  transform: translateY(-4px) scale(1.03);
  color: #0d6efd;
}

.btn-outline-hero {
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: 0.4s;
}

.btn-outline-hero:hover {
  background: #fff;
  color: #0d6efd;
  transform: translateY(-4px);
  border-color: #fff;
}

.robot-img-container {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.robot-image {
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
  animation: floatRobot 6s ease-in-out infinite;
}

.robot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

@keyframes floatRobot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.floating-badge {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  margin: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (min-width: 992px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  .robot-image {
    max-width: 100%;
  }

  .hero-right-wrapper {
    min-height: 500px;
  }

  .floating-badge {
    position: absolute;
    margin: 0;
    z-index: 3;
    animation: floatBadge 6s ease-in-out infinite;
  }

  .badge-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
  }

  .badge-2 {
    top: 45%;
    left: -10%;
    animation-delay: 1.5s;
  }

  .badge-3 {
    bottom: 10%;
    right: -2%;
    animation-delay: 3s;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .btn-hero,
  .btn-outline-hero {
    width: 100%;
    text-align: center;
  }
}
.timeline-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
}
.timeline-header h1 span {
  color: #ff3b00;
}
.timeline-header .subtitle {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #ff3b00;
  font-size: 2.5rem;
}

.timeline-container {
  position: relative;
  padding: 50px 0;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #ff3b00;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-row {
  padding: 20px 0;
  position: relative;
  display: flex;
  align-items: center;
}

.timeline-badge {
  width: 20px;
  height: 20px;
  background-color: #fdfaf4;
  border: 4px solid #f43d05;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(255, 59, 0, 0.15);
}

.timeline-content {
  width: 45%;
  padding: 5px;
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-row:nth-child(odd) .timeline-content {
  text-align: left;
}

.timeline-row:nth-child(even) .timeline-content {
  text-align: left;
}

.timeline-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.timeline-desc {
  color: #7a7a7a;
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-title {
    display: flex;
    align-items: center; 
    gap: 10px;         
}

.title-icon {
    width: 100px;      
    height: auto;      
}
@media (max-width: 768px) {
  .timeline-container::after {
    left: 20px;
  }
  .timeline-row {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 40px;
  }
  .timeline-badge {
    left: 20px;
  }
  .timeline-content {
    width: 100%;
    text-align: left !important;
  }
}
:root {
  --card-bg: rgba(255, 255, 255, 0.85);
  --primary-color: #4f46e5;
  --text-color: #1e293b;
}

body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-family: "Cairo", sans-serif;
  color: var(--text-color);
  min-height: 100vh;
}

.text-gradient {
  background: linear-gradient(45deg, #1e1b4b, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.bg-soft-primary {
  background-color: rgba(79, 70, 229, 0.1);
}

.pro-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.icon-overlay i {
  color: #fff;
  font-size: 2.5rem;
}

.pro-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

.pro-card:hover .img-wrapper img {
  transform: scale(1.12) rotate(1deg);
}

.pro-card:hover .icon-overlay {
  opacity: 1;
}

.meta-tag {
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.track-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.track-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #64748b !important;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.pro-card:hover .animate-float {
  animation: float 2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.pro-card:hover .animate-pulse {
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.pro-card:hover .animate-bounce {
  animation: bounce 1.2s infinite ease-in-out;
}

.horizontal-scroll {
  scroll-snap-type: x proximity;
  cursor: grab;
}
.horizontal-scroll:active {
  cursor: grabbing;
}
.gallery-card {
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.gallery-card:hover {
  border-color: rgba(30, 58, 95, 0.2);
}

.card-icon {
  opacity: 0.7;
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.9);
}
@media (hover: hover) {
  .card-icon {
    opacity: 0;
    transform: translateY(10px);
  }
  .gallery-card:hover .card-icon {
    opacity: 1;
    transform: translateY(0);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Tajawal", sans-serif;
  background: #f0f4f9;
  color: #0b1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
}
.gallery-wrapper {
  max-width: 100%;
  padding: 0 2rem;
}

.gallery-header {
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}
.gallery-header h1 {
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #0b1a2e, #1f3a5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.gallery-header .subhead {
  font-weight: 300;
  color: #475569;
  border-bottom: 2px solid rgba(30, 58, 95, 0.12);
  padding-bottom: 0.6rem;
  max-width: 460px;
  margin-top: 0.2rem;
}
.gallery-header .subhead i {
  color: #1e3a5f;
  margin-left: 6px;
}

.horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1.5rem 0.5rem 2.5rem 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #b0c4de #e9edf2;
}
.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}
.horizontal-scroll::-webkit-scrollbar-track {
  background: #e9edf2;
  border-radius: 20px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #b0c4de;
  border-radius: 20px;
}
.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: #1e3a5f;
}

.gallery-card {
  flex: 0 0 340px;
  max-width: 340px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px -8px rgba(0, 20, 40, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.35s ease;
  scroll-snap-align: start;
  position: relative;
  animation: fadeSlide 0.7s ease forwards;
  opacity: 0;
  transform: translateX(18px);
  border: 2px solid transparent;
  background: transparent;
}
.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 32px 56px -16px rgba(0, 20, 40, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 28px;
}
.gallery-card:hover img {
  transform: scale(1.04);
}

.card-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a5f;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  cursor: pointer;
  z-index: 3;
  text-decoration: none;
}
.gallery-card:hover .card-icon {
  opacity: 1;
  transform: translateY(0);
}
.card-icon:hover {
  background: #1e3a5f;
  color: white;
  transform: scale(1.1);
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.gallery-card:nth-child(1) {
  animation-delay: 0.04s;
}
.gallery-card:nth-child(2) {
  animation-delay: 0.09s;
}
.gallery-card:nth-child(3) {
  animation-delay: 0.14s;
}
.gallery-card:nth-child(4) {
  animation-delay: 0.19s;
}
.gallery-card:nth-child(5) {
  animation-delay: 0.24s;
}
.gallery-card:nth-child(6) {
  animation-delay: 0.29s;
}
.gallery-card:nth-child(7) {
  animation-delay: 0.34s;
}
.gallery-card:nth-child(8) {
  animation-delay: 0.39s;
}
.gallery-card:nth-child(9) {
  animation-delay: 0.44s;
}

.gallery-footer {
  margin-top: 2.2rem;
  padding: 0 0.5rem;
  font-weight: 300;
  color: #64748b;
  border-top: 1px solid rgba(30, 58, 95, 0.06);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}
.gallery-footer i {
  color: #1e3a5f;
}
.scroll-hint {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 60px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #1e3a5f;
  font-weight: 400;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.scroll-hint i {
  margin-left: 8px;
}

@media (max-width: 576px) {
  .gallery-header h1 {
    font-size: 2rem;
  }
  .gallery-card {
    flex: 0 0 280px;
    max-width: 280px;
  }
  .gallery-card img {
    height: 220px;
  }
  .horizontal-scroll {
    gap: 1rem;
    padding: 1rem 0.2rem 2rem;
  }
  .gallery-wrapper {
    padding: 0 1rem;
  }
}
.main-card {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
  max-width: 550px;
  width: 100%;
}

.card-header-custom {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 30px;
  text-align: center;
}

.card-header-custom h3 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.card-header-custom p {
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.card-body {
  padding: 40px 35px;
}

.form-label {
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #2a5298;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
  background-color: #fff;
}

.input-group-text {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
}

.btn-submit {
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  border: none;
  color: white;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
  background: linear-gradient(135deg, #1e3c72, #142850);
  color: white;
}

.btn-submit:active {
  transform: translateY(0);
}
